<extend name="Public/base" />
<block name="body">

    <div class="main-title">
        <h2>{:isset($info['id'])?'编辑':'新增'}通知</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="{$data.id}" />
        <!-- <input type="text" name="a_type" value="{$a_type}" /> -->
        <div class="form-item">
            <label class="item-label">地区</label>
            <div class="controls">
                    <volist name="areas" id="v">
                        <in name="v['areaID']" value="$data['area_id']">
                            <input type="checkbox" name="area_id[]" value="{$v.areaID}" checked="checked" />
                            {$v.area}&nbsp;&nbsp;
                        <else/>
                            <input type="checkbox" name="area_id[]" value="{$v.areaID}" />
                            {$v.area}&nbsp;&nbsp;
                        </in>
                    </volist>
            </div>


        </div>
        <div class="form-item">
            <label class="item-label">标题</label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$data.title}" />
            </div>
        </div>
        
        <div class="form-item">
            <label class="item-label">内容</label>
            <div class="controls">
                <input type="text" name="content" value="{$data.content}" style="width: 400px; height: 100px;" />
                <!-- <textarea name="content">{$data.content}</textarea>
                {:hook('adminArticleEdit', array('name'=>content,'value'=>$data['content']))} -->
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>
<block name="script">
    <script type="text/javascript">
    //导航高亮
    highlight_subnav('{:U('index')}');
    </script>
</block>
